

#ifndef _BUZZER_H__
#define _BUZZER_H__

#include <stdint.h>

#define BeepTimeShort		80
#define BeepTimeNomal		200
#define BeepTimeLong		400

#define Buzzer_BeepMult(n)		Buzzer_BeepDuration(n, 200)
#define Buzzer_AsyncBeep(ms)	Buzzer_AsyncBeepMult(1, ms, ms)

void Buzzer_Init(void);
void Buzzer_Beep(uint32_t ms);
void Buzzer_BeepDuration(uint8_t count, uint32_t ms);
void Buzzer_AsyncBeepMult(uint8_t count, uint32_t onMs, uint32_t offMs);
int Buzzer_State(void);
void Buzzer_On(void);
void Buzzer_Off(void);
void Buzzer_Lock(uint8_t state);


#endif /* _BUZZER_H_ */

